<template>
  <div>
    <h3>个人档案</h3>
    <div>
      <empDetailPrint ref="empDetailPrint" :detailData="detailData"/>
    </div>
  </div>
</template>

<script>
  import { person_attr } from '@/api/person.js'
  import empDetailPrint from '@/components/print/empDetailPrint.vue'
  export default {
    components: {
      empDetailPrint
    },
    data() {
      return {
        detailData: {}
      }
    },
    created() {
      this.person_attr()
    },
    methods: {
      person_attr() {
        person_attr().then(res=>{
          if(res.code === 200) {
            this.detailData = res.data
          }
        })
      }
    }
  }
</script>

<style scoped>

</style>
